﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InHD.commands;
using System.Windows.Input;

namespace InHD.viewmodels
{
    class RegisterStep2:WorkspaceViewModel
    {
        #region Constructor
        public RegisterStep2(string regResult)
        {
            this._registerResult = regResult;
        }
        #endregion

        #region Value Property
        private string _registerResult;
        #endregion

        #region Presentation Property 
        public string RegisterResult
        {
            get
            {
                return this._registerResult;
            }
            set
            {
                this._registerResult = value;
            }
        }
        #endregion

        #region Command
        private RelayCommand _closeCommand;
        public ICommand CloseCommand
        {
            get
            {
                if (_closeCommand == null)
                {
                    _closeCommand = new RelayCommand(
                        (param) => this.Close());
                }
                return _closeCommand;
            }
        }
        #endregion

        #region Command Method
        void Close()
        {
            OnRequestClose();
        }
        #endregion

    }
}
